{% extends "WebMainSiteBundle:Web:layout.html.twig" %}
{% set title = "新用户注册" %}
{% block title %}
    {{ title }}
{% endblock %}
{% block page_header %}
    <div class="page-header">
        <div class="container">
            <div class="row">
                <div class="col-md-7">
                    <h1>{{ title }}</h1>
                </div>
                <div class="col-md-5">
                    <ol class="breadcrumb pull-right">
                        <li><a href="{{ path("WebIndex") }}">主页</a></li>
                        <li class="active">用户注册</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
{% endblock %}
{% block main %}
    <section class="content-light">
        <div class="container">
            <form class="contact-form" role="form"  method="post">
                <h2 class="text-right title-form">注册信息</h2>
                <div class="row">
                    <div class="col-md-6">
                        <div class="user_reg_pic">
                            <img src="" alt="图像占位" />
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="email">邮箱</label>
                            <input name="account" type="text" class="form-control input-lg" id="email" placeholder="常用邮箱" />
                        </div>
                        <div class="form-group">
                            <label for="password">密码</label>
                            <input name="password" type="password" class="form-control input-lg" id="password" placeholder="设置不少于6位的密码" />
                        </div>
                        <div class="form-group">
                            <label for="passwordAgain">确认</label>
                            <input name="passwordAgain" type="password" class="form-control input-lg" id="passwordAgain" placeholder="重复上述密码以确保输入的准确性" />
                        </div>
                        <div class="form-group row">
                            <div class="col-md-7">
                                <label for="captcha">验证码</label>
                                <input name="captcha" type="text" class="form-control input-lg" id="captcha" placeholder="验证码" />
                            </div>
                            <div class="col-md-5">
                                <label for="fieldInputEmail">&nbsp;</label>
                                <div style="text-align: right">
                                    <img class="" id="Captcha" src="{{ path("getCaptchaImg") }}" alt="验证码" onclick="document.getElementById('Captcha').src='{{ path("getCaptchaImg") }}?'+Math.random()"/>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <p class="text-right buttons-margin-horizontal">
                    <input type="submit" class="btn btn-theme btn-green" value="提交注册" />
                    <input type="reset" class="btn btn-theme btn-gray" value="重置" />
                </p>
            </form>
        </div>
    </section>
{% endblock %}